<template>
	<view class="pagebg">
		{{$t("message.menuHome")}}
		<view @click="switchLanguage">切换</view>
		<tabbarVue :current="0"></tabbarVue>
	</view>
</template>

<script setup>
	import tabbarVue from '@/components/tabbar/index.vue'
	import {
		ref,
	} from 'vue'
	import {
		onShow,
	} from '@dcloudio/uni-app'
	import { useI18n } from 'vue-i18n';
	 
	const { t, locale } = useI18n();
	
	const switchLanguage = () => {
		locale.value = locale.value == 'zh' ? 'en' : 'zh'
	}
	
	onShow(() => {

	})
</script>

<style>
	page {
		background: #ffffff;
	}
</style>
<style lang="scss" scoped>
	
</style>